using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;

using Com.Grubbland.Data.Access;
using Com.Grubbland.Data.Objects;


/// <summary>
/// Summary description for PublicService
/// </summary>
[WebService(Namespace = "http://eelms.grubbland.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class PublicService : System.Web.Services.WebService
{
    PublicServiceImpl _svc = new PublicServiceImpl();
    MessageServiceImpl _msgsvc = new MessageServiceImpl();

    public PublicService()
    {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public string HelloWorld()
    {
        return "Hello World";
    }

    [WebMethod]
    public Project ViewProject( string projectId )
    {
        return _svc.ViewProject(projectId);
    }

    [WebMethod]
    public bool SendEmail( EEMailMessage msg )
    {
        return _msgsvc.SendEmail(msg);
    }

    [WebMethod]
    public bool SendForgottenLogin(string username)
    {
        return _svc.SendForgottenLogin(username);
    }

}

